const fs = require("fs");

const reader = fs.createReadStream("./txt.txt", {
  start: 2,
  end: 6,
  highWaterMark: 2,
});

reader.on("data", (data) => {
  console.log(data.toString("utf-8"));
});
